package com.AAL.Model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the TypeOfAutos database table.
 * 
 */
@Entity
@Table(name="TypeOfAutos")
public class TypeOfAuto implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="TypeOfAutoID")
	private String typeOfAutoID;

    @Lob()
	@Column(name="Description")
	private String description;

	@Column(name="TypeOfAutoName")
	private String typeOfAutoName;

	//bi-directional many-to-one association to TypesOfWheel
	@OneToMany(mappedBy="typeOfAuto", cascade={CascadeType.REMOVE, CascadeType.REFRESH})
	private List<TypesOfWheel> typesOfWheels;

    public TypeOfAuto() {
    }

	public String getTypeOfAutoID() {
		return this.typeOfAutoID;
	}

	public void setTypeOfAutoID(String typeOfAutoID) {
		this.typeOfAutoID = typeOfAutoID;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getTypeOfAutoName() {
		return this.typeOfAutoName;
	}

	public void setTypeOfAutoName(String typeOfAutoName) {
		this.typeOfAutoName = typeOfAutoName;
	}

	public List<TypesOfWheel> getTypesOfWheels() {
		return this.typesOfWheels;
	}

	public void setTypesOfWheels(List<TypesOfWheel> typesOfWheels) {
		this.typesOfWheels = typesOfWheels;
	}
	
}